import service from '@/api/http'
export const consumption = {

    // 获取消费记录
    getConsumption(p) {
        return service.get('/consumption', { params: p })
    },

    // 新增消费记录
    addConsumption(p) {
        return service.put('/consumption/add', p)
    },

    // 更新消费记录
    updateConsumption(p) {
        return service.post('/consumption/update', p)
    },

    // 删除消费记录
    deleteConsumption(p) {
        return service.delete('/consumption/delete', {params:p})
    },

    // 获取查询项客户信息
    getCustomerList(){
        return service.get('/consumption/getCustomerList')
    },

    // 获取客户列表
    getCustomerInfo(){
        return service.get('/consumption/getCustomerInfo')
    },

    // 获取项目列表
    getProject(){
        return service.get('/consumption/getProject')
    },

    // 获取支付方式列表
    getPaymentMethod(){
        return service.get('/consumption/getPaymentMethod')
    }
}